using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Xeneize.SolaraBL;

namespace WIntegrator.Pages
{
    public partial class OrdersView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Set control current user property
            this.OrderGridView1.CurrentUser = new User(Membership.GetUser().ProviderUserKey.ToString());

            if (Session["CurrentView"] == null)
            {
                Session.Add("CurrentView", Request.QueryString["id"].ToString());
            }
            else
            {
                Session.Clear();
                Session.Add("CurrentView", Request.QueryString["id"].ToString());
            }
        }
    }
}
